package com.appkubes.mall.core.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 优惠券
 * @author Rongjie
 */
@Data
@TableName("mall_coupon")
@KeySequence(value = "mall_coupon_SEQ")
@ApiModel(value = "MallCoupon对象")
public class MallCoupon implements Serializable{

       @ApiModelProperty(value = "归属管理员的uuid")
       private String appKey;

       @TableId(value = "coupon_key", type = IdType.UUID)
       private String couponKey;

       @ApiModelProperty(value = "优惠券名称")
       private String name;

       @ApiModelProperty(value = "活动开始时间", example = "1")
       private Integer beginTime;

       @ApiModelProperty(value = "活动结束时间", example = "1")
       private Integer endTime;

       @ApiModelProperty(value = "单笔满多少金额")
       private BigDecimal useMoney;

       @ApiModelProperty(value = "满减金额")
       private BigDecimal money;

       @ApiModelProperty(value = "领取后有效天数", example = "1")
       private Integer days;

       @ApiModelProperty(value = "总量", example = "1")
       private Integer num;

       @ApiModelProperty(value = "剩余数量", example = "1")
       private Integer leftNum;

       @ApiModelProperty(value = "推广位置,1首页,2详情页", example = "1")
       private Integer position;

       @ApiModelProperty(value = "图片链接")
       private String imageUrl;

       private Integer createTime;

       @ApiModelProperty(value = "更新时间", example = "1")
       private Integer updateTime;

       @ApiModelProperty(value = "状态 1开启 2关闭", example = "1")
       private Integer state;

       @ApiModelProperty(value = "使用说明")
       private String info;

       @ApiModelProperty(value = "商品id,默认0,所以商品可用,有商品id则指定商品分类可用")
       private String goodsKey;

       @ApiModelProperty(value = "兑换需要的积分", example = "1")
       private Integer useScore;

       @ApiModelProperty(value = "活动类型")
       private String activeType;

       @ApiModelProperty(value = "适用范围")
       private String useArea;

       @ApiModelProperty(value = "优惠券类型", example = "1")
       private Integer type;

       private String usercouponKey;

       @ApiModelProperty(value = "版本号", example = "1")
       @Version
       private Integer version;

}
